import axios from "axios";

export const getPosts = async () => {
  const {data} =  await axios.get("https://dummyjson.com/posts?limit=10");
  return data.posts;
};

export const getPeople = async () => {
  const {data} =  await axios.get("https://dummyjson.com/users?limit=10");
  return data.users;
};